using mvcincode.Middlewares;

namespace mvcincode.Extensions;

public static class MiddlewareExtensions
{
    public static void UseMyMiddleware(this WebApplication application)
    {
        application.UseMiddleware<RoutingTestMiddleware>();
    }

    public static void UseMyAuthMiddleware(this WebApplication application)
    {
        application.UseMiddleware<MyAuthMiddleware>();
    }
}